<?php

namespace common\validate;


class ProjectCapacityReportMonth extends BaseValidate
{
    // 验证规则
    protected $rule = [];


    public function sceneListByYear()
    {
        return $this->append('param.project_id', 'require|integer')
            ->append('param.step_category_id', 'require|integer')
            ->append('param.report_year', 'require|integer');
    }

    public function sceneSaveReportMonthData()
    {
        return $this->append('param.project_id', 'require|integer')
            ->append('param.step_category_id_list', 'require|array')
            ->append('param.report_moth', 'require')
            ->append('param.number', 'integer|between:0,32140800')
            ->append('param.type', 'integer|between:1,3');
    }
}
